<?php

namespace app\adminapi\controller\v1\product;

use app\adminapi\controller\AuthController;
use app\Request;
use app\services\product\product\StoreProductServices;
use app\services\product\product\SyncStoreProductServices;
use think\facade\App;
/**
 * Class StoreProduct
 * @package app\adminapi\controller\v1\product
 */
class SyncStoreProductController extends AuthController
{
    protected $service;

    public function __construct(App $app, SyncStoreProductServices $service)
    {
        parent::__construct($app);
        $this->service = $service;
    }

    public function test(Request $request){
//        $data = app()->make(\app\services\order\SyncOrderServices::class)->syncOrderV1(32);
        $data = app()->make(SyncStoreProductServices::class)->getParams(['orderId' => '250527203244126209', 'outOrderId' => 'cp450395604200194048']);
        return app("json")->success("1234", [$data]);
    }

}